package cn.itsource.pethome.user.mapper;

import cn.itsource.pethome.basic.mapper.BaseMapper;
import cn.itsource.pethome.user.domain.User;
import cn.itsource.pethome.user.domain.WechatUser;
import org.apache.ibatis.annotations.Param;

/**
 * @description: 描述:
 * @date: 2020/8/14 16:30
 * @author: summer
 * version: 1.0
 */

public interface WechatMapper extends BaseMapper<WechatUser> {

    //通过openid查询用户是否第一次扫描
    WechatUser loadByOpenid(String openid);

    //绑定用户
    void binding(@Param("uid") Long uid, @Param("openid") String openid);
}
